<?php

class Competition_Model extends ORM {
    protected $has_many = array('photos', 'users');

    public static function get_last_competition() {
        return ORM::factory('competition')->orderby('id','desc')->limit(1)->find();
    }
}

?>
